package com.lsb.fitnessnutrition.tutorial

import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import kotlinx.android.synthetic.main.fragment_squat_tutorial.view.*
import org.tensorflow.lite.examples.classification.ModelHelper
import org.tensorflow.lite.examples.classification.ModelHelperSquat
import org.tensorflow.lite.examples.classification.R

class SquatTutorialFragment : Fragment() {

    override fun onCreateView(
        inflater: LayoutInflater, container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        // Inflate the layout for this fragment
        val view = inflater.inflate(R.layout.fragment_squat_tutorial, container, false)

        view.btn_evaluate_squat.setOnClickListener {
            startActivity(Intent(activity, ModelHelperSquat::class.java))
        }

        return view
    }

}